<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link type="text/css" rel="stylesheet" href="css/layout.css" />
<title>Admin control panel !</title>
</head>

<body>
<?php include("menu.php"); ?>

<div id="head-noidung">
	<div id="head-main">
		
		
<?php
include ("../include/config.php");
?>

<p>Danh sách thành viên quản trị hệ thống Admin | <a class="copyrighta" href="themusers.php"> Thêm mới</a></p>
<table class="classtable">
<thead>
	<tr>
		<th>STT</th>
		<th>Username</th>
		<th>Họ và tên</th>
		<th>Email </th>
		<th>Mobile</th>
		<th>Hoạt động</th>
		<th>Thao tác</th>
	</tr>
</thead>

<?php
$SQL="SELECT *FROM users ";
$rs = mysql_query($SQL);
if($rs)
	{ $i=1;
		while($row=mysql_fetch_array($rs))
		
	{
?>
<tbody>
<tr>
	<td><?php echo $i?> </td>
	<td><?php echo $row["username"]?></td>
	<td><?php echo $row["fullname"]?></td>
	<td><?php echo $row["email"]?></td>
	<td><?php echo $row["tel"]?></td>
	<td><?php if($row["status"]==1) { ?> <img src="images/yes.png" width="23" height="22"/><?php } else { ?> <img src="images/no.png" width="23" height="22"/> <?php } ?></td>
	<td>
		<a class="copyrighta" href="users_edit.php?id=<?php echo $row["id"]?>">Sửa</a>
		<a class="copyrighta" href="include/del_user.php?id=<?php echo $row["id"]?> ">Xóa</a>
	</td>
</tr>

<?php  $i++;}	}  ?>
</tbody>
</table>



	</div>	
</div>

<?php include("images/cherry/footer.php"); ?>

</body>
</html>
